import pandas as pd
import json


def convert(file):
    fileobj = open(file)
    filedata = fileobj.read()
    jsondata = json.loads(filedata)[:1000]
    df = pd.DataFrame(jsondata)
    df.to_hdf("user_study.h5", key="data")


convert("users_data.json")